<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="bean" class="login.Login" scope="page" />
	<jsp:setProperty property="*" name="bean" />
	
	<%
		if(bean.id_check()){  %>
			<script>
				alert("아이디가 중복됩니다. 다른 아이디를 사용하세요.");					
				location.href = 'Main.jsp?inc_content=../login/join.jsp';
			</script>
		<%}else{%>
			<script>
				alert("사용가능한 아이디입니다.");
				location.href = 'Main.jsp?inc_content=../login/join.jsp&mid=<%=bean.getMid()%>&num=<%=bean.getNum()%>';
			</script>
		<%} %>
</body>
</html>